package o;

import android.os.Bundle;
import android.text.TextUtils;
import androidx.annotation.NonNull;

public abstract class bpt {
    private final exq ˎ;

    public bpt(@NonNull exq o_exq) {
        this.ˎ = o_exq;
    }

    protected static Bundle ॱ(int i) {
        Bundle bundle = new Bundle();
        bundle.putInt("int.version", i);
        bundle.putInt("int.result", 0);
        return bundle;
    }

    protected static Bundle ˊ(int i, int i2, String str) {
        Bundle bundle = new Bundle();
        bundle.putInt("int.version", i);
        bundle.putInt("int.result", i2);
        if (!TextUtils.isEmpty(str)) {
            bundle.putString("String.resultDesc", str);
        }
        return bundle;
    }

    protected void ˎ(int i, Bundle bundle) {
        try {
            this.ˎ.ॱ(i, bundle);
        } catch (Throwable e) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "RemoteException when calling onStartInstall: " + e, e);
        } catch (Throwable e2) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "Exception when calling onStartInstall: " + e2, e2);
        }
    }

    protected void ॱ(int i, Bundle bundle) {
        try {
            this.ˎ.ˏ(i, bundle);
        } catch (Throwable e) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "RemoteException when calling onCancelInstall: " + e, e);
        } catch (Throwable e2) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "Exception when calling onCancelInstall: " + e2, e2);
        }
    }

    protected void ˋ(Bundle bundle) {
        try {
            this.ˎ.ॱ(bundle);
        } catch (Throwable e) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "RemoteException when calling onDeferredInstall: " + e, e);
        } catch (Throwable e2) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "Exception when calling onDeferredInstall: " + e2, e2);
        }
    }

    protected void ˏ(Bundle bundle) {
        try {
            this.ˎ.ˏ(bundle);
        } catch (Throwable e) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "RemoteException when calling onDeferredUninstall: " + e, e);
        } catch (Throwable e2) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "Exception when calling onDeferredUninstall: " + e2, e2);
        }
    }

    protected void ˋ(int i, Bundle bundle) {
        try {
            this.ˎ.ˋ(i, bundle);
        } catch (Throwable e) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "RemoteException when calling onGetInstall: " + e, e);
        } catch (Throwable e2) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "Exception when calling onGetInstall: " + e2, e2);
        }
    }

    protected void ˎ(Bundle bundle) {
        try {
            this.ˎ.ˊ(bundle);
        } catch (Throwable e) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "RemoteException when calling onGetInstallStates: " + e, e);
        } catch (Throwable e2) {
            boc.ˎ.ˊ("DynamicCoreCallbackWrapper", "Exception when calling onGetInstallStates: " + e2, e2);
        }
    }
}
